Better fix for KML entity escaping.
authorrobertl <robertl>
Mon, 19 Jul 2010 23:48:07 +0000 (23:48 +0000)
committerrobertl <robertl>
Mon, 19 Jul 2010 23:48:07 +0000 (23:48 +0000)
kml.c

diff --git a/kml.c b/kml.c
index 63ed9921615987e3e98dd1b53d0a0491fdf953b4..4ddc63174d60609235c0ccee6ec3fa584c4f727c 100644 (file)
--- a/kml.c
+++ b/kml.c
@@ -414,7 +414,7 @@ kml_write_xmle(const char *tag, const char *fmt, ...)
                        needs_escaping = 1;
                gbfprintf(ofd, "<%s>", tag);
                 if (needs_escaping) gbfprintf(ofd, "<![CDATA[");
-               gbvfprintf(ofd, fmt, args);
+               gbvfprintf(ofd, tmp_ent, args);
                 if (needs_escaping) gbfprintf(ofd, "]]>");
                gbfprintf(ofd, "</%s>\n", tag);
                xfree(tmp_ent);